<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<%@ page import="com.beans.log.*" %>
<%@ page import="com.business.log.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%String title="收藏的日志列表"; %>
<%@ include file="header.jsp" %>
<%
	LogFavorBus lfb=new LogFavorBus();
	LogListBus llb=new LogListBus();
	List favorList=lfb.getAllFavorsByUserName(username);	
	if(favorList==null||favorList.size()==0) {
%>
	<br />
<center><font color=red>还没有收藏日志!</font></center>
<br />
<% 
   } else {
%>
<table align="center">
<tr><th>收藏名</th><th>日志的标题</th><th>日志No</th><th align="center">功能</th></tr>
<%
	for(int i=0;i<favorList.size();i++) {
	LogFavorite lf=(LogFavorite)favorList.get(i);
%>
<tr><td><%=lf.getFavName()%></td><td width="40%"><%=((LogInfo)llb.getLogByNo(lf.getLogNo())).getLogTitle() %></td><td><%=lf.getLogNo()%></td><td width="30%" align="center"><a href="updateFavorLog?action=edit&no=<%=lf.getFavNo()%>">修改</a>&nbsp;<a href="updateFavorLog?action=del&no=<%=lf.getFavNo()%>">删除</a></td></tr>
<%
	      }
		 
	}
%>
</table>
<%@ include file="footer.jsp" %>
</body>
</html>
